#include "DOPTPRMData.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::FEM;

bool SG::DataStructure::FEM::operator==(const DOPTPRMData& val1,
                                        const DOPTPRMData& val2) {
  FIELD_COMPARE(m_APRCOD)
  FIELD_COMPARE(m_IPRINT)
  FIELD_COMPARE(m_DESMAX)
  FIELD_COMPARE(m_METHOD)
  FIELD_COMPARE(m_DELP)
  FIELD_COMPARE(m_DPMIN)
  FIELD_COMPARE(m_PTOL)
  FIELD_COMPARE(m_CONV1)
  FIELD_COMPARE(m_CONV2)
  FIELD_COMPARE(m_GMAX)
  FIELD_COMPARE(m_DELX)
  FIELD_COMPARE(m_DXMIN)
  FIELD_COMPARE(m_DELB)
  FIELD_COMPARE(m_GSCAL)
  FIELD_COMPARE(m_CONVDV)
  FIELD_COMPARE(m_CONVPR)
  FIELD_COMPARE(m_P1)
  FIELD_COMPARE(m_P2)
  FIELD_COMPARE(m_CT)
  FIELD_COMPARE(m_CTMIN)
  FIELD_COMPARE(m_DABOBJ)
  FIELD_COMPARE(m_DELOBJ)
  FIELD_COMPARE(m_DOBJ1)
  FIELD_COMPARE(m_DOBJ2)
  FIELD_COMPARE(m_DX1)
  FIELD_COMPARE(m_DX2)
  FIELD_COMPARE(m_ISCAL)
  FIELD_COMPARE(m_ITMAX)
  FIELD_COMPARE(m_ITRMOP)
  FIELD_COMPARE(m_IWRITE)
  FIELD_COMPARE(m_IGMAX)
  FIELD_COMPARE(m_JTMAX)
  FIELD_COMPARE(m_ITRMST)
  FIELD_COMPARE(m_JPRINT)
  FIELD_COMPARE(m_IPRNT1)
  FIELD_COMPARE(m_IPRNT2)
  FIELD_COMPARE(m_JWRITE)
  FIELD_COMPARE(m_STPSCL)
  FIELD_COMPARE(m_FSDMAX)
  FIELD_COMPARE(m_FSDALP)
  FIELD_COMPARE(m_DISCOD)
  FIELD_COMPARE(m_DISBEG)
  FIELD_COMPARE(m_PLVIOL)
  FIELD_COMPARE(m_P2CR)
  FIELD_COMPARE(m_P2CDDV)
  FIELD_COMPARE(m_P2CP)
  FIELD_COMPARE(m_P2CC)
  FIELD_COMPARE(m_P2CM)
  FIELD_COMPARE(m_P2CBL)
  FIELD_COMPARE(m_P2RSET)
  FIELD_COMPARE(m_P2CALL)
  FIELD_COMPARE(m_ADSCOD)
  FIELD_COMPARE(m_PENAL)
  FIELD_COMPARE(m_DRATIO)
  FIELD_COMPARE(m_AUTOSE)
  FIELD_COMPARE(m_NUMDIV)
  FIELD_COMPARE(m_TCHECK)
  FIELD_COMPARE(m_TDMIN)
  FIELD_COMPARE(m_TFWET)
  FIELD_COMPARE(m_TREGION)
  FIELD_COMPARE(m_EATA1)
  FIELD_COMPARE(m_EATA2)
  FIELD_COMPARE(m_EATA3)
  FIELD_COMPARE(m_UPDFAC1)
  FIELD_COMPARE(m_UPDFAC2)
  FIELD_COMPARE(m_DPMAX)
  FIELD_COMPARE(m_DXMAX)
  FIELD_COMPARE_ARR(m_OPTCOD, 8)
  FIELD_COMPARE(m_OBJMOD)
  FIELD_COMPARE(m_DELXESL)
  FIELD_COMPARE(m_DSMXESL)
  FIELD_COMPARE(m_NASPR0)
  FIELD_COMPARE(m_LSCOD)
  FIELD_COMPARE(m_domainId)
  return true;
}